import { Map, MapApiLoaderHOC, NavigationControl } from "react-bmapgl";
import "./App.css";

import React from 'react';

class App extends React.Component {
  render() {
    return (
      <div className="map-container">
        <Map 
          center="重庆"
          zoom={11}
          enableScrollWheelZoom
          style={{ height: '100%', width: '100%' }}
        >
          <NavigationControl />
        </Map>
      </div>
    );
  }
}

// 简化HOC配置
export default MapApiLoaderHOC({
  ak: "8fBQZ7F58GMEdK6nwNmpjiM6ov4mTpKq"
})(App);



